package service;

import util.ResponseBean;

public interface CaCheService {

    /**
     * 存储验证码
     * @param phone
     * @param code
     * @return
     */
    public ResponseBean outPhoneCode(String phone, String code);

    /**
     * 获取验证码
     * 有则返回数据,无则null
     * @param phone
     * @return
     */
    public String putPhoneCode(String phone);

    /**
     * 删除验证码
     * @param phone
     * @return
     */
    public String dletePhoneCode(String phone);
}
